	
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<body>

	<head>
		<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
		<link rel="stylesheet" href="../css/ABC.css" type="text/css" />

	</head>

<body>

	<center>

	  <div id="stylized" class="myform"><br \>



<?php
$Name = $_GET['name'];
$Groupe = $_GET['grp'];
$file = 'mach.tmp';


/*
* Recuperation de la liste des utilisateurs d'un machines
*/

include ('Function_SQL.php');

$Connect =new Connector_Sql();
$Connect->connect();

$User_List = $Connect->Get_User($Groupe,$Name);
$Connect->deconnect();

//ON remplace le séparateur d'tulisateur

$User_List = str_replace('/',' - ',$User_List);
$User_List='<p>'.$User_List.'</p>';


/*
* deconnection de la bdd
*/

		/*
		*passage commande systeme
		*/
	echo '<h1>Liste des Utilisateurs de '.$Name.' </h1><br \>';
	echo $User_List;
	$cmd =  exec("sudo python /var/www/Scripts/machine.py ".$Groupe." ".$Name."");

?>
</div>
</body>
</html>
